<?php
namespace App\Library\System\Model;

use App\Library\System\Model;

class ProfileModel extends Model
{

    public function __construct()
    {
        parent::__construct();
    }

    public function getWidgets()
    {
        return $this->more($this->select()
                ->from('widget')
                ->columns(array(
                    'id',
                    'name',
                ))
                ->where(array(
                    'enable' => 1
                ))
        );
    }

}